﻿using System.Linq;

namespace BCCommon.Extensions
{
    public static class ObjectExtension
    {
        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="value"></param>
        /// <param name="collections"></param>
        /// <returns></returns>
        public static bool In<T>(this T value, params T[] collections)
        {
            return collections.Contains(value);
        }
    }
}
